<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>css 居中的N种方法</title>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <script type="text/javascript">
    	
   		document.addEventListener('plusready', function(){
   			//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。"
   			
   		});
   		
    </script>
    <style type="text/css">
    	body{
    		height: 100%;
    		background-color: #f7b2bb;
    	}
    	.main{
    		display: flex;
    		width: 100%;
    		flex-direction: column;
    		justify-content: center;
    		align-items: center;
    		
    	}
    	.main li {
    		display: flex;
    		width: 50%;
    		height: 50px;
    		background-color:#1296db;
    		align-items: center;
    		justify-content: center;
    		margin: 10px 0;
    	}
    	a{
    		text-decoration: none;
    	}
    </style>
</head>
<body>
	<header>
		<h1>居中的多种方法</h1>
	</header>
	<ul class="main">
		<li><a href="page/flex.html">flex方法</a></li>
		<li><a href="page/50.html">50%方法</a></li>
		<li><a href="page/absolute.html">absolute方法1</a></li>
		<li><a href="page/absolute2.html">absolute方法2</a></li>
	</ul>
</body>
</html>